package cn.bdqn.web;

import java.text.SimpleDateFormat;
import java.util.Date;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController //@Controller +@Result
//@Controller
public class DataController {
	@RequestMapping("/getNow")
	public String getNow(){
		Date  date=new Date();
		SimpleDateFormat sdf=new SimpleDateFormat("yyyy--mm-dd HH：mm：");
		String format=sdf.format(date);
		return format;//得到当前时间
		}

}
